<?php

namespace api\controller;

use common\controller\VerifyController;
use common\service\DelayOrderTaskService;
use support\ErrorCode;
use think\Exception;
use think\Request;

class TaskPostponeSingletonController extends VerifyController
{

    private $delayOrderTaskService;

    public function __construct()
    {
        parent::__construct();

        parent::__construct();
        $this->delayOrderTaskService = DelayOrderTaskService::getInstance();
    }

    /**
     * 根据任务id获取延期单数据
     * @param  Request  $request
     * @return void
     */
    public function list(Request $request)
    {
        $param   = $request->param()['param'];
        $resData['delay_order_task'] = $this->delayOrderTaskService->getDelayOrderListByTaskId($param['task_id']);

        return json(success_response('', $resData));
    }
}
